layui.define([], function (exports) {
    var keyUp = {
        down: function (e) {
            return new Promise(function (resolve, reject) {
                var currKey = 0;
                var obj = e || event;
                currKey = obj.keyCode || obj.which || obj.charCode;
                resolve({code: 1, msg: '', result: currKey});
            });
        }
    };
    exports('keyUp', keyUp);
});
